import request from '../index'

export function login(data: object) {
    return request.post('/login', data)
}

export function getUserList(index: number, size: number) {
    return request.get('/user', {
        index, size
    })
}

export function editUser(id: string, state?: number) {
    return request.put('/user', {
        id,
        state
    })
}